package com.bms.client.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 对外信息交流(DuiWaiXinXiJiaoLiu)实体类
 *
 * @author makejava
 * @since 2021-03-19 10:41:55
 * @version 1.0
 */
@ApiModel(value = "DuiWaiXinXiJiaoLiuChanXun",description = "对外信息交流")
public class DuiWaiXinXiJiaoLiuChanXun implements Serializable {

    private static final long serialVersionUID = -4772230780049989373L;
	@ApiModelProperty(name = "riQi",notes = "日期",dataType = "Date",required = true)
    @DateTimeFormat(pattern="yyyy-MM-dd")
    // 下面是服务器响应返回的内容，如果没有格式化转换，那么返回的内容是长毫秒数，接收mysql数据库中的数据也需要设置东八区+8时
    @JsonFormat(pattern="yyyy-MM-dd", timezone = "GMT+8")

    private Date riQi;
    @Min(value=1,message = "page不能小于0")
   private Integer page=1;

    public Date getRiQi() {
        return riQi;
    }

    public void setRiQi(Date riQi) {
        this.riQi = riQi;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }
}